package com.zxe.feignapi.clients;

import com.zxe.feignapi.interceptor.FeignInterceptor;
import com.zxe.feignapi.pojo.FreshVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "freshserver", configuration = FeignInterceptor.class)
public interface FreshClient {
    @GetMapping("/admin/count/{id}")
    Integer countByCategoryId(@PathVariable("id") Long id);

    @GetMapping("/user/{id}")
    FreshVO findById(@PathVariable("id") Long id);
}
